<template>
	<view>
		<stop isBack>
			<view slot="content">代理商信息</view>
		</stop>
		<view class="lh2 bcf mar3 pad2">
			<view class="flrc bdbda pad2">
				<view>名称：</view>
				<view class="flex1 tar">{{agent.name}}</view>
			</view>
			<view class="flrc bdbda pad2">
				<view>地址：</view>
				<view class="flex1 tar">{{agent.address}}</view>
			</view>
			<view class="flrc bdbda pad2">
				<view>联系人：</view>
				<view class="flex1 tar">{{agent.contact}}</view>
			</view>
			<view class="flrc bdbda pad2">
				<view>手机：</view>
				<view class="flex1 tar">{{agent.phone}}</view>
			</view>
			<view class="flrc bdbda pad2">
				<view>微信：</view>
				<view class="flex1 tar">{{agent.wx}}</view>
			</view>
			<view class="flrc bdbda pad2">
				<view>QQ：</view>
				<view class="flex1 tar">{{agent.qq}}</view>
			</view>
			<view class="flrc bdbda pad2">
				<view>邮箱：</view>
				<view class="flex1 tar">{{agent.email}}</view>
			</view>
			<view class="flrc bdbda pad2">
				<view>传真：</view>
				<view class="flex1 tar">{{agent.fax}}</view>
			</view>
			<view class="bdbda pad2">
				<view class="lh15 martb2">备注：</view>
				<view class="" v-html="agent.tips"></view>
			</view>
			<view class="tac pad2 line-green round cu-btn lg w100 mart5" @tap="call(agent.phone)">
				<view>拨打电话</view>
				<ripple></ripple>
			</view>
		</view>
		<loading :loading="myIsLoading"></loading>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:"",
				agent:{}
			}
		},
		methods: {

		},
		onLoad(option) {
			this.id = option.id
			this.$api.get("/api/machineSuppliers/" + this.id, {}, (res) => {
				this.clearLoading()
				this.agent = res.d
			})
		}
	}
</script>

<style>

</style>
